import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.LinkedList;
import java.util.ListIterator;

import javax.swing.BorderFactory;
import javax.swing.JButton;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.SwingUtilities;
import javax.swing.border.LineBorder;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class NwJFrameVerlistadoAprobados extends javax.swing.JDialog {
	private JPanel jPanelCargaraprobados;
	private JScrollPane jScrollPaneaprobados;
	private JTable jTableEstudiantesEvaluados;
	private JButton jButtonSalir10;
	private JLabel jLabelCargarNotas;
	private Seccion seccion;
	private Estudiante e;
	private Profesor pro;
	LinkedList<Estudiante> LisEstu2;
	private ModeloDatosJTableAprobados modelo;
	
	public NwJFrameVerlistadoAprobados(JFrame frame, Seccion secc) {
		super(frame);
		seccion = secc;
		LisEstu2 = seccion.listarEstudiantesCedula();
		pro = seccion.getProf();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setModal(true);
			{
				getContentPane().setLayout(null);
				this.setTitle("Estudiantes Aprobados");
				{
					jPanelCargaraprobados = new JPanel();
					getContentPane().add(jPanelCargaraprobados);
					jPanelCargaraprobados.setBounds(19, 12, 614, 279);
					jPanelCargaraprobados.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
					jPanelCargaraprobados.setLayout(null);
					{
						jLabelCargarNotas = new JLabel();
						jPanelCargaraprobados.add(jLabelCargarNotas);
						jLabelCargarNotas.setText("Listado De Estudiantes Aprobados");
						jLabelCargarNotas.setBounds(191, 13, 309, 16);
						jLabelCargarNotas.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jScrollPaneaprobados = new JScrollPane();
						jPanelCargaraprobados.add(jScrollPaneaprobados);
						jScrollPaneaprobados.setBounds(13, 82, 584, 136);
						jScrollPaneaprobados.setFont(new java.awt.Font("Comic Sans MS",3,14));
						{							
							jTableEstudiantesEvaluados = new JTable();
							jScrollPaneaprobados.setViewportView(jTableEstudiantesEvaluados);
							modelo = new ModeloDatosJTableAprobados(seccion);
							jTableEstudiantesEvaluados.setModel(modelo);
							jTableEstudiantesEvaluados.setBounds(40, 169, 584, 85);
							
						}
					}
					{
						jButtonSalir10 = new JButton();
						jPanelCargaraprobados.add(jButtonSalir10);
						jButtonSalir10.setText("Salir");
						jButtonSalir10.setBounds(278, 236, 94, 23);
						jButtonSalir10.setFont(new java.awt.Font("Comic Sans MS",3,14));
						jButtonSalir10.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jButtonSalir10ActionPerformed(evt);								
							}
						});
					}
				}
			}
			this.setSize(669, 351);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	protected void jButtonSalir10ActionPerformed(ActionEvent evt) {
		this.dispose();
	}


}
